package com.wwdeng.print.app.meituan

object TestData {

    /**
     * 测试
     */
    val PRINT_TEST_BYTE = byteArrayOf(
        27,64,27,33,0,
        65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90,
        49, 50, 51, 52, 53, 54, 55, 56, 57, 48,
        97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122,
        96, 126, 33, 64, 35, 36, 37, 94, 38,
        42, 40, 41, 95, 43, 45, 61, 123, 125, 124, 91, 93,
        92, 58, -95, -79, 59, -95,
        -81, 60, 62, 63, 44, 46, 47, -95,
        -92, -95, -85, -93, -95, 64, 35, 37,
        -95, -83, -95, -83, 38, 42, -93, -88,
        -93, -87, -95, -86, -95, -86, 43, 45, 61,
        -95, -72, -95, -71, 124, -95, -66,
        -95, -65, -95, -94, -93, -70, -95, -80,
        -95, -79, -93, -69, -95, -82, -95, -81,
        -95, -74, -95, -73, -93, -65, -93, -84,
        -95, -93, 47, -76, -14, -45, -95,
        -69, -6, -78, -30, -54, -44, -76, -14,
        -45, -95, -69, -6, -78, -30, -54, -44,
        10, 10, 10, 10, 10, 10
    )

    /**
     * 测试打印中文
     */
    val PRINT_TEST_CHINESE = "硬件服务SDK用于APP与收银机内部设备如内置打印机、内置扫码盒、内置电子秤等设备进行交互，实现打印，扫码，称重及获取设备信息等功能"

    /**
     * 测试打印英文
     */
    val PRINT_TEST_ENGLISH = "The hardware service SDK is used for the interaction between the APP and internal devices of the cash register, such as built-in printers, built-in scanning boxes, built-in electronic scales, etc., to achieve functions such as printing, scanning, weighing, and obtaining device information"

    /**
     * 美团订单格式
     */
    val PRINT_MT_ORDER = byteArrayOf(
        27,64,27,33,0,
        42,42,42,42,27,33,56,35,53,54,27,33,0,27,33,56,-61,-64,-51,-59,-51,-30,-62,-12,27,33,0,42,42,42,42,
        27,33,0,27,97,1,10,27,33,0,42,-52,-20,-52,-20,-61,-64,-54,-77,42,27,33,0,27,97,1,10,
        10,27,33,0,-49,-62,-75,-91,-54,-79,-68,-28,-93,-70,49,49,45,48,54,32,49,49,58,48,50,27,33,0,27,97,0,10,
        42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,
        10,27,33,0,45,45,45,45,45,45,45,45,45,45,45,45,49,-70,-59,-65,-38,-76,-4,45,45,45,45,45,45,45,45,45,45,45,45,
        32,13,10,27,33,0,27,33,16,-80,-51,-50,-9,-65,-66,-56,-30,43,-46,-69,-69,-25,-46,-69,-53,-40,43,-73,-71,27,33,0,27,97,0,10,27,33,16,53,46,56,-43,-37,44,32,-44,-83,-68,-37,49,56,46,48,48,32,32,32,42,32,32,49,32,32,32,32,32,49,48,46,53,13,10,27,33,0,27,33,0,
        45,45,45,45,45,45,45,45,45,45,45,45,45,45,-58,-28,-53,-4,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
        27,33,0,27,97,0,10,27,33,0,-78,-51,-70,-48,-73,-47,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,48,46,54,13,10,27,33,0,27,33,0,-59,-28,-53,-51,-73,-47,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,48,46,48,13,10,27,33,0,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,10,27,33,0,-44,-83,-68,-37,-93,-70,49,56,46,54,-44,-86,27,33,0,27,97,2,10,27,33,0,27,33,0,40,-45,-61,-69,-89,-44,-38,-49,-33,-42,-89,-72,-74,41,27,33,0,27,33,56,49,49,46,49,-44,-86,27,33,0,27,33,0,27,97,2,10,
        45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,
        10,27,33,56,-42,-15,-49,-29,-44,-73,32,40,-31,-23,-42,-35,-47,-89,-44,-70,-47,-89,-55,-6,-71,-85,-44,-94,-46,-69,-76,-79,41,27,33,0,27,97,0,10,27,33,56,49,57,56,53,56,56,48,48,54,54,55,27,33,0,27,97,0,10,27,33,56,49,-59,-82,-54,-65,27,33,0,27,33,56,27,33,0,27,97,0,10,10,27,97,1,29,104,81,29,119,2,29,107,73,13,123,66,77,102,87,66,48,112,65,76,78,75,49,73,68,58,50,51,55,53,53,57,57,51,52,56,48,50,56,49,53,57,57,10,27,64,27,64,27,100,4,
    )
    val order =
                    "1B40" +//开始打印
                    "1B2100" +//打印模式
                    "2A2A2A2A" +// ****
                    "1B2138" +
                    "233536" +//#56
                    "1B2100" +
                    "1B2138" +
                    "C3C0CDC5CDE2C2F4" +//美团外卖
                    "1B2100" +
                    "2A2A2A2A" +//****
                    "1B2100" +
                    "1B6101" +
                    "0A" +
                    "1B2100" +
                    "2ACCECCCECC3C0CAB32A" +//*天天美食*
                    "1B2100" +
                    "1B6101" +
                    "0A0A" +
                    "1B2100" +
                    "CFC2B5A5CAB1BCE4A3BA31312D30362031313A3032" +//下单时间：11-06 11:02
                    "1B2100" +
                    "1B6100" +
                    "0A" +
                    "2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A" +
                    "0A" +
                    "1B2100" +
                    "2D2D2D2D2D2D2D2D2D2D2D2D" +
                    "31BAC5BFDAB4FC" +//1号口袋
                    "2D2D2D2D2D2D2D2D2D2D2D2D" +
                    "200D" +
                    "0A" +
                    "1B2100" +
                    "1B2110" +
                    "B0CDCEF7BFBEC8E22BD2BBBBE7D2BBCBD82BB7B9" +//巴西烤肉+一荤一素+饭
                    "1B2100" +
                    "1B6100" +
                    "0A" +
                    "1B2110" +
                    "352E38D5DB2C20D4ADBCDB31382E30302020202A202031202020202031302E35" +//5.8折, 原价18.00   *  1     10.5
                    "0D" +
                    "0A" +
                    "1B2100" +
                    "1B2100" +
                    "2D2D2D2D2D2D2D2D2D2D2D2D2D2D" +
                    "C6E4CBFC" +//其它
                    "2D2D2D2D2D2D2D2D2D2D2D2D2D2D" +
                    "1B2100" +
                    "1B6100" +
                    "0A" +
                    "1B2100" +
                    "B2CDBAD0B7D1" +//餐盒费
                    "2020202020202020202020202020202020202020202020" +
                    "302E36" +//0.6
                    "0D0A" +
                    "1B2100" +
                    "1B2100" +
                    "C5E4CBCDB7D1" +//配送费
                    "2020202020202020202020202020202020202020202020" +
                    "302E30" +//0.0
                    "0D0A" +
                    "1B2100" +
                    "2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A" +
                    "0A" +

                    "1B2100" +
                    "D4ADBCDBA3BA31382E36D4AA" +//原价：18.6元
                    "1B2100" +
                    "1B6102" +

                    "0A" +
                    "1B2100" +
                    "1B2100" +
                    "28D3C3BBA7D4DACFDFD6A7B8B6291B21001B213831312E31D4AA" +//(用户在线支付)11.1元
                    "1B2100" +
                    "1B2100" +
                    "1B6102" +
                    "0A" +
                    "2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D" +
                    "0A" +
                    "1B2138" +
                    "D6F1CFE3D4B72028E1E9D6DDD1A7D4BAD1A7C9FAB9ABD4A2D2BBB4B129" +//竹香苑......
                    "1B2100" +
                    "1B6100" +
                    "0A" +
                    "1B2138" +
                    "3139383538383030363637" +//19858800667
                    "1B2100" +
                    "1B6100" +
                    "0A" +
                    "1B2138" +
                    "31C5AECABF" +//1女士
                    "1B2100" +
                    "1B2138" +
                    "1B2100" +
                    "1B6100" +
                    "0A0A" +
                    "1B6101" +
                    "1D6851" +
                    "1D7702" +
                    "1D6B49" +
                    "0D7B424D6657423070414C4E4B31" +//条形码
                    "49443A3233373535393933343830323831353939" +//ID:237...1599
                    "0A" +
                    "1B40" +
                    "1B40" +
                    "1B6404"

    /**
     * 开始打印指令
     */
    val PRINT_START = byteArrayOf(0x1B, 0x40)

    /**
     * 切纸指令
     * 此指令需在内容打印完成后单独执行
     */
    val PRINT_CUT = byteArrayOf(0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x1D, 0x56, 0x01)


    /**
     *                                             **** xxx号 ****
     *
     *                                  桌号：xxx                    会员：xxxxx
     *                                  用餐类型：xxx               用餐人数：xxx
     *
     *                                  消费清单：
     *                                  --------------------------------------
     *                                  餐位费             3位              xxx
     *                                  鱼香肉丝           1份              xxx
     *                                  回锅肉             1份              xxx
     *                                  小菜豆腐汤         1份              xxx
     *                                  总计                               xxx
     *
     *                                  支付信息：
     *                                  -------------------------------------
     *                                  付款时间：          yyyy-MM-dd hh:mm:mm
     *                                  付款方式：                          xxx
     *                                  付款金额：                          xxx
     *                                  折扣金额：                          xxx
     *
     *                                  备注： xxxxx
     *
     */



    /**
     *                  1.设置水平跳格(一):
     *                  水  平    跳            格
     *
     *                  执行：设置跳格位置为03，09，20
     *                  指令示例：1b40312ec9e8d6c3cbaec6bdccf8b8f128d2bb293a0a1b4403092000cbae09c6bd09ccf809b8f10a
     *
     *                  指令拆分结果
     *                  1b40  -> （指令：初始化打印机）
     *                  312ec9e8d6c3cbaec6bdccf8b8f128d2bb293a  -> （文本内容: 1.设置水平跳格(一)）
     *                  0a  -> （指令：打印并换⾏）
     *                  1b44  -> （指令：设置⽔平跳格）
     *                  030920  -> （指令：跳格位置）
     *                  00   ->
     *                  cbae  -> （文本内容: 水）
     *                  09  ->
     *                  c6bd  -> （文本内容: 平）
     *                  09  ->
     *                  ccf8  -> （文本内容: 跳）
     *                  09  ->
     *                  b8f1 -> （文本内容: 格）
     *                  0a  -> （指令：打印并换⾏）
     *
     */

}